const StorageRN = {
    get(payload) {
        return new Promise(function(resolve) {
            storeWithRn(
                {
                    action: 'get',
                    hash: payload
                },
                res => {
                    resolve(res);
                }
            );
        });
    },
    set({ key, value }) {
        return new Promise(function(resolve) {
            storeWithRn(
                {
                    action: 'set',
                    hash: { [key]: value }
                },
                res => {
                    resolve(res);
                }
            );
        });
    }
};
